package br.com.util;

import br.com.cliente.ClienteDAO;
import br.com.cliente.ClienteDAOHibernate;
import br.com.vendas.HibernateUtil;

/**
 *
 * @author MCR11
 */
public class DAOFactory {

    public static ClienteDAO criaClienteDAO() {
        ClienteDAOHibernate clienteDAOHibernate = new ClienteDAOHibernate();
        clienteDAOHibernate.setSessao(HibernateUtil.getSession().getCurrentSession());
        return clienteDAOHibernate;
    }
    
}
